<template>
  <el-col :span="5">
    <el-card shadow="hover">
      <span style="color: #fff;font-weight: 700;">{{ title }}</span>
      <slot name="the_total"></slot>
      <div class="headComponent">
        <span style="color: #fff;font-weight: 700;">{{ time }}</span>
      </div>
      <slot name="falling"></slot>
    </el-card>
  </el-col>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '平均学习时长'
    },
    time: {
      type: String,
      default: '1'
    }
  }
}
</script>

<style scoped>
.el-col{
  width: 18%;
  text-align: left;
  font-size: 18px;
}
.headComponent{
  line-height: 20px;
  margin-top: 10px;
}
.headComponent span{
  font-weight: 600;
}
</style>
